package com.nmsl.nurse.service.impl;

import com.nmsl.nurse.domain.MPatient;
import com.nmsl.nurse.mapper.MPatientMapper;
import com.nmsl.nurse.service.IMPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MPatientServiceImpl implements IMPatientService {
    @Autowired
    private MPatientMapper mPatientMapper;
    @Override
    public List<MPatient> selectAll(MPatient mPatient) {
        return mPatientMapper.selectall(mPatient);
    }

    @Override
    public MPatient selectByPrimaryKey(Long id) {
        return mPatientMapper.selectByPrimaryKey(id);
    }
}
